'''
Created on 2011-9-29

@author: leo
'''
import time
import sys
import os
path = os.path.dirname(sys.argv[0])
class log():
    def __init__(self,note):
        f = open(path+time.strftime("/%Y%m%d.log"),"a")
        f.write(time.strftime("%H:%M:%S  "))
        f.write(note + "\n")
        f.close()